import cv2

cv2.namedWindow("img", cv2.WINDOW_NORMAL)
cv2.resizeWindow('img', 600, 800)

img = cv2.imread("./avg.jpg")

while True:
    cv2.imshow('img', img)
    key = cv2.waitKey(0)
    if key == ord('q'):
        break
    elif key == ord('s'):
        cv2.imwrite("ags.png", img)
    else:
        print(key)
cv2.destroyAllWindows()
